<?php $this->load->view('header'); ?>
    <!-- begin content --> 
    <div class="ContentContainer">  
        <div style="margin-top: 10px;" class="BodyContainer">  
            <div class="BoxTool">
                <ul>
                    <li class="BoxTitle" id="BoxTitle"> List Role </li>
                </ul> 
                <!--<ul class="BoxSearch" id="BoxSearch">
                    <li>
                        <div>
                            sdfs<br>sdfs<br>sdfs<br>sdfs<br>sdfs<br> 
                            <input type="button" class="button submit" value="Cập nhật">  
                        </div>
                    </li>
                </ul>-->  
            </div>
            <br />
            <!--<div class="BoxPaging">
                <ul>
                    {$paging}   
                </ul>     
            </div>-->
            <div class="Clear"></div>
            <div class="BoxContent">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr align="left">
                        <th>Name</th>
                        <th>Description</th>
                        <th width="100">Status</th> 
                    </tr> 
                    <?php 
                    if($roles) {
                        foreach($roles as $role) {
                    ?>    
                    <tr>
                        <td><a href="<?=site_url('admin/acl/editrole/'. $role->role_id)?>"><?=$role->name?></a></td> 
                        <td><?=$role->desc?></td>
                        <td><a href="<?=site_url('admin/acl/active/'. $role->role_id)?>"><?=($role->active) ? 'On' : 'Off'?></a></td> 
                    </tr>   
                    <?php 
                        }
                    }
                    else {
                    ?>
                    <tr>
                        <td colspan="3"> Chưa có dữ liệu. </td>
                    </tr>
                    <?    
                    }
                    ?>
                </table>
            </div>
            <!--<div class="BoxPaging">
                <ul>
                    {$paging}   
                </ul>
            </div>-->
            <div class="Clear"></div>  
        </div>
    </div> 
    <!-- end content -->
<?php $this->load->view('footer'); ?>